package com.wzx.data.entity;
import com.wzx.basics.baseClass.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 提问表 实体类
 * @author wzx
 * @since 2023/03/20
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "a_question")
@TableName("a_question")
@ApiModel(value = "提问表")
public class Question extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 提问者ID
     */
    private String userId;
    /**
     * 科目ID
     */
    private String subjectId;
    /**
     * 提问者昵称
     */
    private String userName;
    /**
     * 问题
     */
    private String question;

    /**
     * 状态 0:未解决 1:已解决
     */
    private Integer status;

}